package com.test.p10proxy.example01;

/**
 * @author bcc
 */
public class AccessValidator {

    private static final String  USERNAME = "cc";

    private static final String  PASSWORD = "123456";

    public boolean validateUser(String usrename,String password){
        System.out.println("查询数据库进行验证...");
        if(USERNAME.equals(usrename) && PASSWORD.equals(password)){
            return true;
        }
        return false;
    }
}
